package org.centrala;

public class Product {
    private String productCode;
    private String name;
    private float price;
    private String describe;
    private ProductStatus status;
    private Category category;
    private ProductType type;
    private int oddzialID;

    public Product(String productCode, String name, float price, String describe, ProductStatus status, Category category, ProductType type, int oddzialID) {
        this.productCode = productCode;
        this.name = name;
        this.price = price;
        this.describe = describe;
        this.status = status;
        this.category = category;
        this.type = type;
        this.oddzialID = oddzialID;
    }

    public Product(){}

    @Override
    public String toString() {
        return "Product{" + "productCode=" + productCode + ", name=" + name + ", price=" + price + ", describe=" + describe + ", status=" + status + ", category=" + category + ", type=" + type + ", oddzialID=" + oddzialID + '}';
    }
    
    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public ProductStatus getStatus() {
        return status;
    }

    public void setStatus(ProductStatus status) {
        this.status = status;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public ProductType getType() {
        return type;
    }

    public void setType(ProductType type) {
        this.type = type;
    }

    /**
     * @return the oddzialID
     */
    public int getOddzialID() {
        return oddzialID;
    }

    /**
     * @param oddzialID the oddzialID to set
     */
    public void setOddzialID(int oddzialID) {
        this.oddzialID = oddzialID;
    }
}
